package reflect;

import reflect.annotation.AutoRunClass;

public class ReflectDemo7 {
    public static void main(String[] args) throws Exception {
        //加载类对象
        Class cls = Class.forName("reflect.person");
        //判断当前类对象cls表示的类Person是否被指定的注解@AutoRunClass标注了
        boolean tf = cls.isAnnotationPresent(AutoRunClass.class);


        System.out.println("是否被标注了："+tf);
    }
}
